﻿/**
* Generic event descriptor. Subclass it for more specific applications, eg network, animation, etc.
* 
* @author Kirill Mourzenko
*/

dynamic class com.kirillam.handy.events.HATEvent 
{
	public static var ENTER_FRAME	: String	= "EnterFrame";
	public static var RENDER		: String	= "Render";
	public static var PULSE			: String	= "Pulse";
	public static var STOP			: String	= "Stop";
	public static var ADDED			: String	= "Added";
	public static var REMOVED		: String	= "Removed";
	
	
	public	var target	: Object;
	public	var name	: String;
	public	var data	: Object;
	
	
	/**
	 * Constructor
	 * 
	 * @param	name	Event identifier.
	 * @param	data	Data related to the event.
	 */
	
	public function HATEvent( name : String, data : Object ) 
	{
		this.name	= name;
		this.data	= data;
	}
}